package com.ccom.im;

import com.ccom.im.websocket.server.ShowcaseWebsocketStarter;
import com.ccom.starter.cloud.annotation.CcomCloudApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.Bean;

@CcomCloudApplication
public class CcomServiceImApplication {

    public static void main(String[] args) {
        SpringApplication.run(CcomServiceImApplication.class, args);
        System.out.println("==========im服务启动完成===========");
    }

    @Bean
    public void start(){
        try {
            ShowcaseWebsocketStarter.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
